package com.bdqn.mapper.Employee;

import com.bdqn.entity.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface EmployeeMapper {
    /**
     * 根据用户id查询员工
     * @param id
     * @return
     */
    Employee findByid(int id);

    /**
     * 根据id查询为供应商的员工
     */
    Employee findByid2(int id);

    /**
     * 添加员工
     */
    boolean Insert(@Param("emp")Employee employee);

    /**
     * 根据用户id插叙
     * @param id
     * @return
     */
   Employee selectemployeebyid(int id);
}
